const Layout = () => import('@/layout/index.vue')

export default listRoute => ({
    78: {
        path: '/system',
        component: Layout,
        name: 'system',
        meta: {
            title: '系统管理',
            icon: 'sidebar-menu'
        },
        children: [

        ]
    },
    79: {
        path: '/manage',
        component: Layout,
        redirect: '/manage/page1',
        name: 'manage',
        meta: {
            title: '设备管理',
            icon: 'sidebar-menu'
        },
        children: [
            {
                path: 'equipmentAdd',
                name: 'equipmentAdd',
                component: () => import('@/views/manage/page1.vue'),
                meta: {
                    title: '设备入库'
                }
            },
            // {
            //     path: 'page2',
            //     name: 'managepage2',
            //     component: () => import('@/views/manage/page2.vue'),
            //     meta: {
            //         title: '设备更新'
            //     }
            // },
            // {
            //     path: 'page3',
            //     name: 'managepage3',
            //     component: () => import('@/views/manage/page3.vue'),
            //     meta: {
            //         title: '设备删除'
            //     }
            // },
            // {
            //     path: 'operation',
            //     component: Layout,
            //     redirect: '/operation/page1',
            //     name: 'operation',
            //     meta: {
            //         title: '设备操作',
            //     },
            //     children: [

            //     ]
            // },
            {
                path: 'give',
                name: 'give',
                component: () => import('@/views/manage/page4/page1.vue'),
                meta: {
                    title: '设备发放'
                }
            },
            {
                path: 'back',
                name: 'back',
                component: () => import('@/views/manage/page4/page2.vue'),
                meta: {
                    title: '设备回收'
                }
            },
            {
                path: 'repair',
                name: 'repair',
                component: () => import('@/views/manage/page4/page3.vue'),
                meta: {
                    title: '设备维修'
                }
            },
            {
                path: 'scrap',
                name: 'scrap',
                component: () => import('@/views/manage/page4/page4.vue'),
                meta: {
                    title: '设备报废'
                }
            },
            {
                path: 'list',
                name: 'list',
                component: () => import('@/views/manage/page6.vue'),
                meta: {
                    title: '日入库清单'
                }
            },
            {
                path: 'page5',
                name: 'managepage5',
                component: () => import('@/views/manage/page5.vue'),
                meta: {
                    title: '编号查询'
                }
            },
            {
                path: 'model',
                name: 'model',
                component: () => import('@/views/deviceInfo/model.vue'),
                meta: {
                    title: '设备基本信息管理'
                }
            },

        ]
    },
    80: {
        path: 'menu',
        component: Layout,
        name: 'menu',
        meta: {
            title: '菜单管理',
            icon: 'sidebar-menu'
        },
        children: [

            {
                path: 'authority',
                name: 'authority',
                component: () => import('@/views/system/menu/page1.vue'),
                meta: {
                    title: '菜单权限'
                },

            },
            {
                path: 'operation',
                name: 'operation',
                component: () => import('@/views/system/menu/page2.vue'),
                meta: {
                    title: '菜单操作'
                },

            },

        ]

    },
    81: {
        path: 'staff',
        component: Layout,
        name: 'staff',
        meta: {
            title: '人员管理',
            icon: 'sidebar-menu'
        },
        children: [
            {
                path: 'departmentManage',
                name: 'departmentManage',
                component: () => import('@/views/system/staff/page1.vue'),
                meta: {
                    title: '部门管理'
                },
            },
            {
                path: 'staffManage',
                name: 'staffManage',
                component: Layout,
                meta: {
                    title: '人员管理'
                },
                children: [

                    ...listRoute

                ]
            },

        ]

    },

    // 86: {
    //     path: '/deviceInfo',
    //     component: Layout,
    //     redirect: '/deviceInfo/class',
    //     name: 'deviceInfo',
    //     meta: {
    //         title: '组件',
    //         icon: 'sidebar-menu'
    //     },
    //     children: [

    //     ]
    // },
    87: {
        path: '/others',
        component: Layout,
        redirect: '/others/supplier',
        name: 'others',
        meta: {
            title: '基础信息',
            icon: 'sidebar-menu'
        },
        children: [
            {
                path: 'supplier',
                name: 'supplier',
                component: () => import('@/views/others/supplier.vue'),
                meta: {
                    title: '供应商管理'
                }
            },
            {
                path: 'params',
                name: 'params',
                component: () => import('@/views/others/params.vue'),
                meta: {
                    title: '参数管理'
                }
            },
            {
                path: 'department',
                name: 'department',
                component: () => import('@/views/others/department.vue'),
                meta: {
                    title: '单位部门管理'
                }
            },
            {
                path: 'address',
                name: 'address',
                component: () => import('@/views/others/address.vue'),
                meta: {
                    title: '地点管理'
                }
            },
        ]
    },
})
